﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.SqlClient;
using System.Data;	

namespace EmployeeCheckIn
{
    public class Log_in
    {
        public DataTable GetData(string U,string p )
        {
            DataTable dt = new DataTable();
            string sqltext = "select * from TBL_LOG_IN Where user_name = '"+U+"' and USER_PASSWORD ='"+p+"'; ";
            SqlConnection sqlconn = new SqlConnection("Server=202.44.52.248;Database=DB_Personal;User Id=personal;Password=1234;");
            SqlDataAdapter da = new SqlDataAdapter(sqltext, sqlconn);
            DataSet ds = new DataSet();
            da.Fill(ds);

            return ds.Tables[0];
        }
    }
}